home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 014 / pc_univ.arc / GLOBALS.TXT < prev    next >
Encoding:
Text File  |  1984-07-11  |  16.5 KB  |  364 lines

  1.                              Installation
  2.  
  3. Copy config.sys and globals.sys onto your boot disk or if you already have a
  4. configure system created add the line device=globals.sys to it. Now reboot and
  5. the Universal Globals device driver will load. Now copy Univ.exe onto the
  6. diskette.
  7.  
  8. Here is a simple example for Wordstar that allows you to operate this program
  9. from any drive and any subdirectory. Load this into your autoexec.bat or have
  10. the autoexec.bat call the file ws.bat
  11.  
  12.                               ws.bat
  13.                       set .ovl=#d:\path
  14.                       set 'ws =#d:\path
  15.                       univ on
  16.  
  17. Now "ws" will run WORDSTAR from any drive or subdirectory.
  18.      Note: d: designates the drive: fill in your own
  19.            \path designates the path name : fill in your own
  20.  
  21.  
  22. This text describes the use and operation of the Universal Globals System
  23. Utilities which enhance PC-DOS 2.xx to take full advantage of multiple
  24. directories and devices. The user is able to invisibly access files outside
  25. the current default directory. Applications programs can then run from any
  26. directory on the system without modification.Path names are not required for
  27. the master programs to find their supporting files once the Universal Globals
  28. have been set in operation.
  29.  
  30. PC-DOS 2.xx provides a tree structured file system which permits effective
  31. organization of data and programs in the file system. However problems arise
  32. with multiple directories since each new directory must contain data on where
  33. certain programs and files are located or contain the files themselves. With
  34. DOS 2.xx the user may tell the operating system to look for programs in a
  35. specified path of directories or devices. This is the program search path set
  36. by using the DOS path comand.
  37.  
  38.                          PATH =F:\;B\SUBDIR\SUBSUB
  39.  
  40. However any files used by the main operation progams such as overlays,or
  41. support files are looked for on the current directory unless a full pathname
  42. is provided.The output files are also created in the default directory.
  43. The Universal Global System eliminates this problem by creating the idea of
  44. a global system.
  45.  
  46. 1) A single filename may be explicitly applied to a full path name and then
  47.    every occurrence of the filename will be replaced by the the corresponding
  48.    path name.
  49.  
  50. 2) A set of filenames may be grouped by either a filename or extension and
  51.    thus may be implicitly applied and set to a common directory.
  52.  
  53. For both forms of application search rules are permitted for which a list of
  54. filenames or directories are searched until an appropriate match occurs.
  55. Wildcards of * and ? extend the search.
  56.  
  57. Thus disk usage is much more efficient since only a single copy  of the
  58. program need be kept in the system. New directories and disks can be used
  59. immediately without having to copy any files onto them and the full potential
  60. of the ram disk is now much improved.
  61.  
  62. Universal Global System also provides a convienent way of accessing files in
  63. widely separated areas of the file system, in a way similar to the Berkeley
  64. Unix Shell but yet not the same.
  65.  
  66. There are several other useful commands available on the disk if you registerThis text describes the use and operation of the Universal Globals System
  67. Utilities which enhance PC-DOS 2.xx to take full advantage of multiple
  68. directories and devices. The user is able to invisibly access files outside
  69. the current default directory. Applications programs can then run from any
  70. directory on the system without modification.Path names are not required for
  71. the master programs to find their supporting files once the Universal Globals
  72. have been set in operation.
  73.  
  74. PC-DOS 2.xx provides a tree structured file system which permits effective
  75. organization of data and programs in the file system. However problems arise
  76. with multiple directories since each new directory must contain data on where
  77. certain programs and files are located or contain the files themselves. With
  78. DOS 2.xx the user may tell the operating system to look for programs in a
  79. specified path of directories or devices. This is the program search path set
  80. by using the DOS path comand.
  81.  
  82.                          PATH =F:\;B\SUBDIR\SUBSUB
  83.  
  84. However any files used by the main operation progams such as overlays,or
  85. support files are looked for on the current directory unless a full pathname
  86. is provided.The output files are also created in the default directory.
  87. The Universal Global System eliminates this problem by creating the idea of
  88. a global system.
  89.  
  90. 1) A single filename may be explicitly applied to a full path name and then
  91.    every occurrence of the filename will be replaced by the the corresponding
  92.    path name.
  93.  
  94. 2) A set of filenames may be grouped by either a filename or extension and
  95.    thus may be implicitly applied and set to a common directory.
  96.  
  97. For both forms of application search rules are permitted for which a list of
  98. filenames or directories are searched until an appropriate match occurs.
  99. Wildcards of * and ? extend the search.
  100.  
  101. Thus disk usage is much more efficient since only a single copy  of the
  102. program need be kept in the system. New directories and disks can be used
  103. immediately without having to copy any files onto them and the full potential
  104. of the ram disk is now much improved.
  105.  
  106. Universal Global System also provides a convienent way of accessing files in
  107. widely separated areas of the file system, in a way similar to the Berkeley
  108. Unix Shell but yet not the same.
  109.  
  110. There are several other useful commands available on the disk if you register.
  111.  
  112.                               DESCRIPTION
  113.  
  114. "IT WOULD BE DESIRABLE TO HAVE THE BASIC CAPABILITY PROVIDED TO THE USER OF
  115. DIRECTING FILE SYSTEM REQUESTS TO SPECIFIC DIRECTORIES ACCORDING TO THE
  116. FILENAME OR ITS EXTENSION IN A MANNER WHICH IS INVISIBLE TO BOTH THE USER
  117. AND THE APPLICATIONS PROGRAM."
  118.  
  119. Universal Globals System now is capable of doing this with ease. This program
  120. developed by Goldensoft Software places the appropriate equations in the
  121. environment using the suppled DOS "set" command and then activating or
  122. deactivating them with the Univ.com. From that point on thea commands are
  123. invisible but the environment can be changed at any time with the further
  124. addition or alteration or SET commands.
  125.  
  126.                             THEORY
  127.  
  128. The environment maintained by the DOS 'shell' or command line interpreter
  129. "COMMAND.COM" is a series of equations between character strings. In the
  130. simplest instance,the global.system takes the filename presented to DOS
  131. and searches for it in the environment, and if found replaces the filename
  132. with the path to the right of the equal (=) sign and then continues with the
  133. DOS request. Thus if the set is as follows:
  134.  
  135.                     Wordat=d:\wordproc\ws\wordat
  136.  
  137. which is placed in the environment by typing:
  138.  
  139.                    SET wordat=#d:\wordproc\ws\wordat
  140.  
  141. and the user types: type wordat
  142. this is equivilent to typing : type d:\wordpro\ws\wordat
  143.  
  144. Some programs require specific overlay files to run and these may be kept in
  145. separate directory. Then explicitly set to the appropriate program.
  146.  
  147.                   Message.ovl=c:\editor\message.ovl
  148.  
  149. The message.ovl file is set to the the editor directory and the message.ovl
  150. file will be found regardless of the default directory, when the editor is
  151. activated.(the set command would be used for above). This example is explicit
  152. command.
  153.  
  154. Two forms of implicit setting are supported which provide the ability to set
  155.  
  156.  
  157. filenames by extensions or catagories as related to the first part of the
  158. filename. All listing files could be for example set to the ram disk to improve
  159. speed.
  160.  
  161.                            .lst=r:\
  162.  
  163. where r: is the ramdisk. Then any file with the extension of .lst will be
  164. created and searched for on the ramdisk.
  165. The period (.) prefix indicates an extension implicit to the filenames.
  166. Filenames may be implicitly set as well. If everything concerning a certain
  167. database is located in a given directory then
  168.  
  169.                           'dbas*=d:\dbase.dir
  170.  
  171. would set all filenames beginning with dbase to that directory reguardless of
  172. the extension. The single quote prefix (') indicates a file implicit name.
  173.  
  174.                          DOS ENVIRONMENT MANAGEMENT
  175.  
  176. Three other command files are provided to help control the environment.
  177. One is provided by DOS called set which is used to set the paths into the
  178. environment. See chapter 10 of the DOS 2.xx manual.
  179.  
  180. The clean.com removes broken strings from the environment which occur if the
  181. space is the command.com runs out. This command is also used to clear the
  182. environment otherwise previously set paths would still be in effect when not
  183. wanted. These are set as temporary paths.
  184. If DOS runs out of environment space it will tell you and thus the alter.com
  185. comes into use which patches DOS to allocate more room for the environment.
  186.  
  187.                                 SET
  188.  
  189.                    SET name=[path];[path2] ...
  190.  
  191. where any number of paths may be specified up to 64 characters long. Paths may
  192. be relative or absolute from the root. A null path indicates the current
  193. default directory.The path specification can have several prefixes:
  194.  
  195.          "     indicates that this directory in the path may not be appended
  196.                to. No files may be created in this directory.However files may
  197.                be renamed,deleted or attribute changed.
  198.  
  199.         !      indicates that this directory in the path may not be modified
  200.                in any way. Therefore no file may be deleted, renamed or have
  201.                an attribute change.
  202.  
  203.         '      indicates that the equation specifies an implicit file set.
  204.  
  205.         .      indicates that the equation specifies an implicit extension
  206.                set.
  207.  
  208.         ? *    The name may have wildcards which will match any character.
  209.                A ? replaces a match for each character and a * will match
  210.                any number of characters and must immediately precede the
  211.                equal sign.
  212.  
  213.         #     indicates a temporary set and would cause the path to be ignored
  214.               unless the 'T' operand is set in Univ. A # immediately following
  215.               the equal sign is ignored as part of the path but indicates a
  216.               temporary set by clean.com.
  217.  
  218.  
  219.                                 clean -#
  220.  
  221.              If the -# is omitted in clean.com then only broken strings are
  222.              removed from the environment.
  223.  
  224.              A limitation of the DOS supplied command.com is that the size of
  225.              the environment is limted by the memory resident programs and
  226.              temporarily by batch files. See section 10 of dos manual. The
  227.              alter.com will change the command.com to accommodate this extra
  228.              space as needed. Use:
  229.  
  230.                               alter [-size][title]
  231.  
  232.             where size is the initial allocation in 16 byte paragraphs which
  233.             must be greater than 10 (default) and not be between 45 and 69
  234.             (to not overlay the command.com initialization code). Title is a
  235.             29 character title of choice which replaces the first line of the
  236.             sign on message of comman.com. Note: you must reboot to activate
  237.             this altered command.com. A temporary set is added to the
  238.             environment to indicate the number of paragrphs of the environment
  239.             size.
  240.                             ESIZE=#size  E stands for environment 
  241.  
  242.             This can be checked with the set command using no arguments and
  243.             can be removed with the clean -#. Suggested sizes are 20,30,40
  244.             Alter command.com at your own risk. No bugs have been found but
  245.             you never know.
  246.  
  247.  
  248.  
  249.                                UNIVERSAL MODES
  250.                                   univ.exe
  251.  
  252.  
  253.            USE:
  254.                           UNIV [-modes][on][off]
  255.  
  256.            on or off activates the universal global system
  257.            modes are one or more of a string of the following
  258.  
  259.            SEARCH MODES
  260.  
  261.            F    filename implicit mode (use of the ')
  262.            E    extension implicit mode(use of the .)
  263.            X    explicit mode on(use of filename.ext)
  264.  
  265.            MODIFIER MODES
  266.  
  267.            D   device specification is as indicated.Filenames including a
  268.                device specification will be set only if this mode is activated.
  269.            O   overide the device specification.The device can be overidden by
  270.                a device in the environment. If not set then environment paths
  271.                with devices are skipped and environment paths without devices
  272.                use the user's device. Only relevent if the user specified a
  273.                device and the D mode is active.
  274.            P   paths accepted with no restrictions.Entire paths may be set.
  275.                Occasionally DOS may parse a path.
  276.            Q   accept paths only with the F and X modes.
  277.            S   filenames with an @ prefix cannot be set. Filenames beginning
  278.                with an @ sign may be excluded from a search path.
  279.            T   temporary sets are usable (use of the #).These paths will only
  280.                be interpreted if the T mode is set.
  281.            *   all modes are on
  282.            .   a period before any mode letter turns OFF that mode
  283.  
  284. The all modes on setting (*) is a reliable default setting.
  285.  
  286.           univ -* on        turns on all the modes
  287.           univ -.*FEX       turns on the filename,extension implicit modes
  288.                             turns on the explicit modes
  289.                             all other modifier modes are off
  290.           univ on           turns on whatever modes were previously set
  291.           univ -.*          equivilent to -* off /turns everything off
  292.           univ -*           equivilent to -* on  /turns everything on
  293.  
  294.  
  295.                               OTHER COMMANDS for registered owners
  296.  
  297. ATTRIB.COM:  USE:  ATTRIB [-attributes][filename] sets the attributes to
  298. those specified and displays the resultant current attributes.The atributes
  299. are:
  300.  
  301.                  S       system
  302.                  H       hidden
  303.                  A       archive
  304.                  R       read-only
  305.                  D       directory (may be displayed but not set)
  306.  
  307. You can hide directories and thus create some file security.
  308.  
  309.                 attrib -H private.dir
  310.  
  311. This directory would now not be displayed in a dir command from the root
  312. but cd private.dir would allow you access to this directory if you new it
  313. existed.
  314.  
  315. SXDIR: will display all the files and all the attributes and with the given
  316. device and path.
  317.  
  318. SYSDATE: if you do not have a hardware clock then when DOS comes up it is
  319. always Jan 1 1980. I have unfortunately created more files in Jan than
  320. necessary. The program sysdate allows you to draw the last saved date from
  321. command.com when the system is loaded.
  322.  
  323. SAVDATE: saves the new time and date in command.com for next load.
  324.  
  325. Place these files in the autoexec.bat file as follows:
  326.  
  327.                         SYSDATE
  328.                         TIME
  329.                         DATE
  330.                         SAVDATE
  331.  
  332. Now no more Jan 1, 1980
  333.  
  334.  
  335.                             EXAMPLES
  336.  
  337. If you would like your prompt to display the time and path then place the
  338. following command in your autoexec.bat file.
  339.  
  340.                  prompt=$t$_$p_$n0$g        or play with it as you like.
  341.  
  342.                  set '123=a:\
  343.                  set .prn=a:\prn
  344.                  set .ovr=a:\
  345.                  set .obj=#f:\obj.dir;a:\
  346.                  set .lib="!a:\
  347.                  univ -* on
  348.  
  349. A diskette in b: would find its files on a: and f: and need not contain any]
  350. files. Note that any lib file extensions are now set to a:. Thus any program
  351. that requires the use of .lib files would now look to a:. The same with any
  352. program that uses .ovr files etc. However if you had a .prn file on c: and
  353. attempted to type it you would receive a file not found message as the
  354. environment looks to a: for this extension. Turn univ -* off in order to
  355. operate on this file. Or use the clean -# command and use # in front of the
  356. drives and paths in the set command as in .obj=#f:\ this would be cleared
  357. and .obj extension files would then be sought anywhere.
  358.  
  359. Universal Globals should be turned off when the precise location of a file
  360. is important. Do not overuse the wildcards as undesired files may be set in
  361. the environment. Use temporary sets where feasible clearing them after use
  362. with clean -#. This avoids duplicate names and keeps the size of the
  363. environment manageable.
  364.